package com.lse_api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 项目日志
 * </p>
 *
 * @author 祁雪
 * @since 2020-05-11
 */
@Getter
@Setter
public class ProjectLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private String id;

    /**
     * 项目ID
     */
    private Integer projectId;

    /**
     * 日志详情
     */
    private String logInfo;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * IP地址
     */
    private String ipAddress;

    /**
     * 记录日期
     */
    private Date logTime;

    @TableField(exist = false)
    private UserInfo userInfo;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getLogInfo() {
        return logInfo;
    }

    public void setLogInfo(String logInfo) {
        this.logInfo = logInfo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    @Override
    public String toString() {
        return "ProjectLog{" +
                "id=" + id +
                ", projectId=" + projectId +
                ", logInfo=" + logInfo +
                ", userId=" + userId +
                ", ipAddress=" + ipAddress +
                ", logTime=" + logTime +
                "}";
    }
}
